package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author dengc
 * @since 2023-05-12
 */
@Getter
@Setter
@TableName("ams_menus")
@ApiModel(value = "Menus对象", description = "")
public class Menus implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("请求路径名称")
    private String menuname;

    @ApiModelProperty("路径")
    private String path;

    @ApiModelProperty("父ID")
    private Integer parentid;

    @TableField(exist = false)
    private List<Menus> children;

    @ApiModelProperty("图标")
    private String icon;

}
